import request from '@/utils/request'


/**
 * 批量插入
 */
export function batchInsertISData(allToUpload) {
  return request({
    url: '/standards/ISData/batchInsert',
    method: 'post',
    data: allToUpload
  })
}

/**
 * 批量更新
 */
export function batchUpdateISData(allToUpdate) {
  return request({
    url: '/standards/ISData/batchUpdate',
    method: 'put',
    data: allToUpdate
  })
}

/**
 * 计算原始数据得分
 */
export function calculateScore(jsonCode) {
  return request({
    url: '/standards/ISData/calculateScore',
    method: 'post',
    data: jsonCode
  })
}
export function indicatorList(query) {
  return request({
    url: '/standards/ISData/indicatorList',
    method: 'get',
    params: query
  })
}
